package com.appbee.core.client.rpcfilter.filters;

import java.util.ArrayList;
import java.util.List;

import com.appbee.core.client.rpcfilter.RpcFilter;
import com.appbee.core.client.rpcfilter.RpcFilterChain;
import com.appbee.core.client.rpcfilter.callback.FilterCallback;

public class StubRpcFilter<I,R> implements RpcFilter<I,R>
{
	private List<FilterCallback<R>> callbackList = new ArrayList<FilterCallback<R>>();
	private List<I> inputList = new ArrayList<I>();

	private List<RpcFilterChain<I, R>> chainList = new ArrayList<RpcFilterChain<I, R>>();
	@Override
	public void doFilter(I input, FilterCallback<R> callback, RpcFilterChain<I, R> chain)
	{
		callbackList.add(callback);
		inputList.add(input);
		chainList.add(chain);
	}
	public List<FilterCallback<R>> getCallbackList()
	{
		return callbackList;
	}
	public void setCallbackList(List<FilterCallback<R>> callbackList)
	{
		this.callbackList = callbackList;
	}
	public List<I> getInputList()
	{
		return inputList;
	}
	public void setInputList(List<I> inputList)
	{
		this.inputList = inputList;
	}
	
	

}
